<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<script src="https://cdn.staticfile.org/vue/3.2.36/vue.global.min.js"></script>
</head>

<body>
<div id="hello-vue" class="demo">

  <input type="text" @change="changeinput($event)">

  <select name="" id="" @change="changeSelect($event)">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
  </select>
</div>

<script>
const app =  Vue.createApp({
  data() {
    return {
    }
  },
  methods:{
    changeinput:function(event){
      alert("!!!!:"+event.target.value)
    },
    changeSelect:function(event){
      console.log("event:",event)
      console.log("event:",event.target)
      console.log("event:",event.target.value)
      alert("$$$$:"+event.target.value)
      
    }
  }
}).mount('#hello-vue')

</script>
</body>
</html>
